list1 = []
# 1 - 10 数字写入列表
for item in range(1, 11):
    list1.append(item)
print(list1)

# 替换成1行写完，式子：推导式
list2 = [item for item in range(1, 11)]
print(list2)

# 思考题：推导式 1-10 偶数存入list3
list3 = [item for item in range(0, 11, 2)]
print(list3)
